From 4fc7d71bc2c486c1816dd13e3b264d0500c3ead5 Mon Sep 17 00:00:00 2001 From: Olaf Hering Date: Tue, 24 Aug 2010 18:33:25 +0100 Subject: [PATCH] tools/xenpaging: call pageout policy function in xenpaging_evict_page Notify policy about a page that was just paged out to disk. Up to now the code called the opposite function, which clears the (xenpaging internal) reference bit, instead of setting it and marking the page as gone. Signed-off-by: Olaf Hering Acked-by: Patrick Colp Signed-off-by: Ian Jackson --- tools/xenpaging/xenpaging.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/xenpaging/xenpaging.c b/tools/xenpaging/xenpaging.c index e6ed4a6f9f..b3b579ef96 100644 --- a/tools/xenpaging/xenpaging.c +++ b/tools/xenpaging/xenpaging.c @@ -363,8 +363,8 @@ int xenpaging_evict_page(xc_interface *xch, xenpaging_t *paging, goto out; } - /* Notify policy of page being paged in */ - policy_notify_paged_in(paging->mem_event.domain_id, victim->gfn); + /* Notify policy of page being paged out */ + policy_notify_paged_out(paging->mem_event.domain_id, victim->gfn); out: return ret; -- 2.30.2